package com.hhs.storage.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.YymUserYijian;
import com.hhs.storage.dao.YymUserYijianDao;
import com.hhs.storage.service.YymUserYijianService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuanjun
 * @since 2020-08-17
 */
@Service
public class YymUserYijianServiceImpl extends ServiceImpl<YymUserYijianDao, YymUserYijian> implements YymUserYijianService {
    @Override
    public Page<YymUserYijian> findPage(Page<YymUserYijian> page, InputParam inputParam) {
        Page<YymUserYijian> rpage = new Page<>(inputParam.getPage(),inputParam.getSize());// 当前页，总条数 构造 page 对象
        return rpage.setRecords(this.baseMapper.findPage(page,inputParam));
    }

    @Override
    public void dele(String id) {
        this.baseMapper.deleteById(id);
    }
}
